package ooday04;



public class AnonInnerClassDemo {
    public static void main(String[] args) {
        Aoo o1= new Aoo(){};

        Aoo o2 =new Aoo(){};
        int num=5;
        num=6;

        Aoo o3=new Boo();

        //想创建Aoo的派生类对象，并且对象只创建一次

    }
}

class Boo extends Aoo{

}

abstract class Aoo{}